package com.iwhalecloud.citybrain.flow.platform.manager.application.common.threadlocal;

/**
 * @author lilh
 * @date 2019-06-18 15:10
 */
public abstract class DeployIdContainer {

    static ThreadLocal<String> deployIdThreadLocal = new ThreadLocal<>();

    public static void setDeployId(String deployId) {
        deployIdThreadLocal.set(deployId);
    }

    public static String getDeployId() {
        return deployIdThreadLocal.get();
    }

    public static void remove() {
        deployIdThreadLocal.remove();
    }
}
